import request from '@/utils/request';

// gasManage:stockManage:storageManage:list
export function searchWarehouseApi (query) {
    return request({
        url: '/stock/warehouse/list',
        method: 'get',
        params: query
    })
}

// gasManage:stockManage:storageManage:list
export function searchWarehouseByIdApi (id) {
    return request({
        url: '/stock/warehouse/'+id,
        method: 'get'
    })
}

// gasManage:stockManage:storageManage:add
export function addWarehouseApi(data) {
    return request({
        url: '/stock/warehouse',
        method: 'post',
        data: data
    })
}
// gasManage:stockManage:storageManage:edit
export function editWarehouseApi(data) {
    return request({
        url: '/stock/warehouse/',
        method: 'put',
        data: data
    })
}
// gasManage:stockManage:storageManage:delete
export function deleteWarehouseApi(id) {
    return request({
        url: '/stock/warehouse/delete/'+id,
        method: 'delete'
    })
}